/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base.message;

import java.io.Serializable;
import java.util.Vector;

/**
 * Data sent by a node
 * @author artem Arvanitis Ioannis
 */
public class Data implements Serializable {

    private int serviceId;
	private Vector<String> serviceData;

    /**
     * Structure representing data sent by a node
     * @param serviceId The service id.
     * @param serviceData The service data.
     */
	public Data (int serviceId, Vector<String> serviceData) {
        this.serviceId = serviceId;
		this.serviceData = serviceData;
	}

    /**
     * Gets the service Id
     * @return the service Id
     */
    public int getServiceId() {
        return serviceId;
    }

    /**
     * Sets the service Id
     * @param service Id The service Id to set
     */
    public void setServiceId(int serviceId) {
        this.serviceId = serviceId;
    }

    /**
     * Gets the service data
     * @return the service data
     */
    public Vector<String> getServiceData() {
        return serviceData;
    }

    /**
     * Sets the service data
     * @param serviceData The service data
     */
    public void setServiceData(Vector<String> serviceData) {
        this.serviceData = serviceData;
    }
    
}
